package miiteen.hb.db.beans;

import miiteen.core.configuration.MeetingProperties;
import miiteen.customsportal.basic.beans.HistoryViewBase;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class DbInfo extends HistoryViewBase {
    /**
     * id
     */
    private String id;
    /**
     * 标题
     */
    private String subject;
    /**
     * 办结时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date completeTime;
    /**
     * 明细链接
     */
    private String url;
    /**
     * 主办单位名称
     */
    private String principalDeptName;
    /**
     * 是否办结
     */
    private String completed;
    /**
     * 办理时限
     */
    private String deadline;
    /**
     * 创建日期
     */
    private Date createTime;
    /**
     * 显示日期
     */
    private Date displayDate;

    /**
     * 督查类型
     */
    private  String   TYPE_NAME;



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public Date getCompleteTime() {
        return completeTime;
    }

    public void setCompleteTime(Date completeTime) {
        this.completeTime = completeTime;
    }

    public String getUrl() {
        return MeetingProperties.getConfigByKey("db.url") + this.id;
    }

    public String getPrincipalDeptName() {
        return principalDeptName;
    }

    public void setPrincipalDeptName(String principalDeptName) {
        this.principalDeptName = principalDeptName;
    }

    public String getCompleted() {
        return completed;
    }

    public void setCompleted(String completed) {
        this.completed = completed;
    }

    public String getDeadline() {
        return deadline;
    }

    public void setDeadline(String deadline) {
        this.deadline = deadline;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getDisplayDate() {
        return this.createTime;
    }


    public String getDB_Sort() {
        return TYPE_NAME;
    }

    public void setDB_Sort(String DB_Sort) {
        this.TYPE_NAME = DB_Sort;
    }
}
